home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / utils / whatdate.zip / WHATDATE.DOC < prev    next >
Text File  |  1996-01-23  |  3KB  |  99 lines

  1.                        WHATDATE DOCUMENTATION
  2.                      Written by E.Kasey Kasemodel
  3.   ----------------------------------------------------------------------
  4.   Registration:  None.
  5.  
  6.   This is one of the 100+ utilities included with DATALINKS a
  7.   server-based alpha page application.  If you are looking to send
  8.   alpha pages from your network or from a stand-alone modem, please
  9.   check out a copy of DATALINKS.  It's really some cool stuff ... and
  10.   it works darn well.
  11.  
  12.   POWERLINK is the Windows version that is delivered to you custom
  13.   configured with your name/company information embedded within.  If
  14.   you carry an alpha pager -- you really should take a look at POWERLINK.
  15.   It's a heck of a great way for YOU to generate more business with
  16.   your pager.
  17.  
  18.                   Call (313) 813-0777 for more information
  19.                   Web:  Check out http://apin.com/alphapage
  20.                    (web site will be active after 1/24/96)
  21.                           Email:  api@cyberspace.org
  22.   ----------------------------------------------------------------------
  23.  
  24.   This utility is called WHATDATE but you should think of it in this
  25.   syntax:
  26.                       WHATDATE WAS x DAYS AGO?
  27.  
  28.   Where the x is a whole number from 1 to whatever you're looking for.
  29.  
  30.  
  31.   PROGRAM LOGIC
  32.  
  33.   Using a julian base as the starting point, WHATDATE determines the
  34.   julian value of today.  Your x value is then subtracted from that
  35.   base and is then converted back into a date format.  In this
  36.   application, the julian base is where 1=January 1st, 1900.
  37.  
  38.  
  39.   PROGRAM OPERATION
  40.  
  41.   The program is a command line utility designed to be run in batch
  42.   files (or from the DOS line).  It will output results to the screen
  43.   but they can just as easily be redirected to a file using the > symbol.
  44.  
  45.   WHATDATE requires a minimum of one parameter which reprensents the
  46.   number of days to subtract.
  47.  
  48.   usage:  WHATDATE <days_ago> [switches]
  49.  
  50.   Where days_ago is the number of days from whatever your system
  51.   thinks today is.
  52.  
  53.   e.g.,  WHATDATE 1 would tell you the date yesterday.
  54.  
  55.   Switches   Explanation
  56.   ~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57.    /p        PREFIX     /pGE  would write GE date
  58.                         use _ if you need to include spaces
  59.  
  60.    /q        Quite mode.  Only show result
  61.  
  62.    /nd       No date dividers (12/25/95 becomes 122595)
  63.  
  64.    /dfx      date format where x is 1..6   default=YYMMDD
  65.              1 = MMDDYY        4 = MMYYYY
  66.              2 = MMDDYYYY      5 = DDMMYY
  67.              3 = MMYY          6 = DDMMYYYY
  68.  
  69.  
  70.    WHATDATE SAMPLES
  71.  
  72.    Action/Result                     What You Enter
  73.    -----------------------------------------------------------------
  74.    Date of yesterday . . . . . . . . WHATDATE 1
  75.  
  76.    Date a year ago . . . . . . . . . WHATDATE 365
  77.  
  78.    Date 1.5 years ago and
  79.    include a GE in front of
  80.    the result  . . . . . . . . . . . WHATDATE 547 /pGE_
  81.  
  82.    Same as above, but send
  83.    the result to a file
  84.    named XXX   . . . . . . . . . . . WHATDATE 547 /pGE_ >XXX
  85.  
  86.    Do not write stuff
  87.    on the screen other
  88.    than the result . . . . . . . . . WHATDATE 1 /q
  89.  
  90.    Remove the dividers
  91.    in the date output  . . . . . . . WHATDATE 1 /q /nd
  92.  
  93.    Report the date in
  94.    a MM/YY format  . . . . . . . . . WHATDATE 1 /df3
  95.  
  96.  
  97.  
  98.  
  99.